#include "resources.h"

Resources::Resources():
    m_CoverCommonImage(4),
    m_CoverDisappearImage(4),
    m_FlyImageArr(4),
    m_FlyOverImageArr(4),
    m_gamebg1Arr(4),
    m_gamebg2Arr(4),
    m_gamebg3Arr(4),
    m_gamebg4Arr(4),
    m_NumImageArr(4)
{
    m_BaoziImage.load(":/image/man/baozi.png");
    m_GirlImage.load(":/image/man/girl.png");
    m_CitouImage.load(":/image/man/citou.png");
    m_FatImage.load(":/image/man/fat.png");
    m_CupImage.load(":/image/man/cup.png");
    m_SoliderImage.load(":/image/man/solider.png");
    m_IndicateImage.load(":/image/man/zhishiquan.png");

    QString str;

    for(int i = 0; i < 4; ++i)
    {
        str = QString(":/image/cover/covercommon%1.png").arg(i);
        m_CoverCommonImage[i].load(str);
        str = QString(":/image/cover/coverdisappear%1.png").arg(i);
        m_CoverDisappearImage[i].load(str);
    }
    m_CoverBombImage.load(":/image/cover/coverbomb.png");

    m_PromatComboImage.load(":/image/prompt/combo.png");
    m_PromatNumImage.load(":/image/prompt/promptnum.png");
    m_PromatSuperImage.load(":/image/prompt/supercombo.png");
    m_PromatClearImage.load(":/image/prompt/clear.png");
    m_PromatFailImage.load(":/image/prompt/fail.png");
    m_PromatReadyImage.load(":/image/prompt/ready.png");
    m_PromatGoImage.load(":/image/prompt/go.png");
    m_PromatWonerfulImage.load(":/image/prompt/wonerful.png");
    m_PromatCongraImage.load(":/image/prompt/congratulations.png");

    for(int i = 0; i < 4; ++i)
    {
        str = QString(":/image/fly/fly%1.png").arg(i);
        m_FlyImageArr[i].load(str);
        str = QString(":/image/fly/flyover%1.png").arg(i);
        m_FlyOverImageArr[i].load(str);
    }
    m_FlyGateImage.load(":/image/fly/gate.png");
    m_FlyLightImage.load(":/image/fly/light.png");
    m_FlyWarningImage.load(":/image/fly/warning.png");
    m_FlyShineImage.load(":/image/fly/shine.png");

    m_hintImage.load(":/image/hint.png");

    for(int i = 0; i < 4; ++i)
    {
        str = QString(":/image/gamebg/gamebg%1.jpg").arg(i);
        m_gamebg1Arr[i].load(str);
        str = QString(":/image/gamebg/gamebg1%1.jpg").arg(i);
        m_gamebg2Arr[i].load(str);
        str = QString(":/image/gamebg/gamebg2%1.jpg").arg(i);
        m_gamebg3Arr[i].load(str);
        str = QString(":/image/gamebg/gamebg3%1.jpg").arg(i);
        m_gamebg4Arr[i].load(str);
    }

    for(int i = 0; i < 4; ++i)
    {
        str = QString(":/image/number/num%1.png").arg(i);
        m_NumImageArr[i].load(str);
    }

    m_LinkImage.load(":/image/link.png");
}
